package io.github.idol.roomlist.room.viewmodel

import android.arch.lifecycle.ViewModel
import android.databinding.ObservableField
import io.github.idol.data.ExtInfo
import io.github.idol.utils.ChatDateTime

class ItemFanpaiViewModel(private val extInfo:ExtInfo):ViewModel(){
    val idolText = ObservableField<String>(extInfo.messageText)
    val fanpaiText = ObservableField<String>(extInfo.faipaiContent)
    val senderName = ObservableField<String>(extInfo.senderName)
    val senderAvatar = ObservableField<String>(extInfo.senderAvatar)
    val msgTime = ObservableField<String>(ChatDateTime.getNiceTime(extInfo.msgTime))
}
